.atwho-view {
  overflow-y: auto;
  overflow-x: hidden;
  max-width: calc(100% - 6px);
  @include gl-border-b-1;
  @include gl-border-b-solid;
  @include gl-border-b-gray-100;
  @include gl-rounded-lg;
  @include gl-shadow-md;

  .name,
  small.aliases,
  small.params {
    float: left;
  }

  small.aliases,
  small.params {
    padding: 2px 5px;
  }

  small.description {
    float: right;
    padding: 3px 5px;
  }

  .avatar-inline {
    margin-bottom: 0;
  }

  .has-warning {
    .description {
      color: $gray-900;
      background-color: $orange-50;
    }
  }

  .cur {
    .avatar {
      @include disable-all-animation;
      border: 1px solid $white;
    }
  }

  ul > li {
    @include clearfix;
    white-space: nowrap;
  }

  // TODO: fallback to global style
  .atwho-view-ul {
    @include gl-p-2;
    max-height: $gl-max-dropdown-max-height;

    li {
      @include gl-px-3;
      padding-top: $gl-padding-6;
      padding-bottom: $gl-padding-6;
      border: 0;
      @include gl-rounded-base;

      &.cur {
        background-color: $gray-darker;
        color: $gl-text-color;

        small {
          color: inherit;
        }

        &.has-warning {
          color: $orange-500;
        }
      }

      div.avatar {
        display: inline-flex;
        justify-content: center;
        align-items: center;
      }

      .center {
        line-height: 14px;
      }

      strong {
        color: $gl-text-color;
      }

      gl-emoji {
        @include gl-mr-2;
      }

      .dropdown-label-box {
        position: relative;
        top: -1px;
        @include gl-mr-2;
      }
    }
  }
}

@include media-breakpoint-down(xs) {
  .atwho-view ul li {
    overflow: hidden;
    text-overflow: ellipsis;
  }
}
